<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.dong.service.UserService"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>检查用户是否被占用</title>
  </head>
  
  <body><br>
   <% 
   		String uid = request.getParameter("uid"); 
   		UserService userService = new UserService(); 
   		boolean isExist = userService.checkUid(uid);   		 
    %>
    
    <c:if test="${pageScope.isExist}">
    	用户名已存在！
    </c:if>
    <c:if test="${!pageScope.isExist}">
    	用户名没有被占用！
    </c:if>
    <c:if test=""></c:if>
  </body>
</html>
